let arr = [6, 5, 3, 4, 8, 4, 6];
let result = arr.every(value => {
  return value > 5;
});
console.log(result); // false
result = arr.every(value => {
  return value < 10;
});
console.log(result); // true

let objArr = [
  { name: 'zg', age: 18 },
  { name: 'kobe', age: 19 },
  { name: 'lucy', age: 25 },
  { name: 'jam', age: 33 },
];
result = objArr.every(item => {
  return item.age > 20;
});
console.log(result); // true
result = objArr.every(item => {
  return item.age < 26;
});
console.log(result); // false
